#include <iostream>

class Base2 {
public:
	void name() { std::cout << "Base2" << std::endl; } 
};

class Derived2 : public Base2 {
public:
	virtual void name() { std::cout << "Derived2" << std::endl; }
};

class DerivedDerived2 : public Derived2 {
public:
	void name() {std:: cout << "DerivedDerived2" << std::endl; }
};